#include <stdio.h>
#include <stdlib.h>
#include <math.h>
  
/*求一元二次方程ax*x+bx+c=0的解*/
int main()
{		 	     	 
    float a, b, c, x1, x2, disc;
    scanf("%f,%f,%f", &a, &b, &c); //1
  
    if (fabs(a) > 1e-6) //1
    {		 	     	 
        disc = b * b - 4 * a * c;
  
        if (disc < 0)
            printf("without resolution");
        if (disc < 1e-6 && disc >=0 ) //1
        {		 	     	 
            x1 = (-b) / (2 * a);
            printf("x1=x2=%f\n", x1);
        }
        if(disc >1e-6) //1
        {		 	     	 
            x1 = (-b + sqrt(disc)) / (2 * a); //1
            x2 = (-b - sqrt(disc)) / (2 * a); //1
            printf("x1=%f; x2=%f\n", x1, x2);
        }
    }
    else
    {		 	     	 
        if (fabs(b) > 1e-6) //1
        {		 	     	 
            x1 = -c / b;
            printf("x1=%f\n", x1);
        }
        else
        {		 	     	 
            printf("Wrong!\n");
        }
  
    }
}